/*
** convert_to_base_signe.c for  in /home/georgi_v/rendu/PSU_2013_my_printf
** 
** Made by georgi_v
** Login   <georgi_v@epitech.net>
** 
** Started on  Sun Nov 17 12:34:02 2013 georgi_v
** Last update Sun Nov 17 16:58:45 2013 georgi_v
*/

#include "my.h"

int	convert_to_base_sign(int num, char *str_base)
{
  if (num < 0)
    {
      my_putchar('-');
      num = num * (-1);
      return (convert_to_base(num, str_base) + 1);
    }
  return (convert_to_base(num, str_base));
}
